#include <iostream>
using namespace std;
int main() {
  double prices[] = {28.9, 32.7, 45.6, 78, 35, 86.2, 27.8, 43, 56, 65};
  double sum = 0;
  for (auto& price: prices) {
    int cnt;
    cin >> cnt;
    sum += price * cnt;
  }
  cout << fixed;
  cout.precision(1);
  cout << sum << endl;
}